elisp-mode.el: Use `handler-bind` instead of `debug-on-error`
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Feb 2024 21:46:01 +0000 (16:46 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 23 Feb 2024 21:46:01 +0000 (16:46 -0500)
commit84f72f19e514db8f8f6e469340fb5fa0719d40b6
tree20ce39a0bba723c3be73f1bc80901ae0d4e7db45
parentc0d7f7fc54f6c67f409e75f20ebb4420d96c71a6
elisp-mode.el: Use `handler-bind` instead of `debug-on-error`

* lisp/progmodes/elisp-mode.el (elisp-enable-lexical-binding):
Don't get fooled by a global binding of `lexical-binding` to t.
(elisp--eval-last-sexp-fake-value): Delete var.
(elisp--eval-defun): Don't let-bind `debug-on-error` since it's
already arranged by the only caller.
(eval-last-sexp, eval-defun): Use `handler-bind` instead of
`debug-on-error`.
lisp/progmodes/elisp-mode.el